<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文章列表页</title>
<load href="__PUBLIC__/css/lwy2011.css" />
<load href="__PUBLIC__/js/jquery-1.5.0.min.js" />
<script>
function checkForm(){
   //alert('b');
   var flag=false;
   $(":checkbox").each(function () {
        if($(this).attr("checked")){
		  flag=true;
		  //break;
		  }
      });
   if(flag){
   document.listForm.submit();
   return false;
   }
   else {
     alert('未选择任何内容');
     return false;
   }
}
</script>
</head>
<body>
<form action="index.php?s=SNSAdmin/toRecommend" method="post" name="listForm">
<table width="934" height="85" border="1" align="center">
  <tr align="center">
    <td colspan="5" style="text-align:left"><span style="text-align:left;">操作:【<a href='' onclick="return checkForm();">添加选中内容到推荐位</a>】【<a href="index.php?s=Diary">查看推荐位</a>】</span></td>
    </tr>
  <tr align="center">
    <th width="63">选择</td>
    <th width="376">标题</td>
    <th width="124">发布人</td>
    <th width="146">发布时间</td>
    <th width="74">是否保密</td>
  </tr>
 
      <volist name="list" id="item">
     <tr><td><input name="ids[]"  type="checkbox" value="{$item['did']}" <?=$item['privacy']?'disabled':''?> /></td>
    <td>{$item['subject']}</td>
    <td>{$item['username']}</td>
    <td><?=date('Y-m-d H:i:s',$item['postdate'])?></td>
    <td><?=$item['privacy']==1?'是':'否'?></td>
     </tr>
      </volist>
	   <tr><td colspan="5" style="text-align:left"><div class='yahoo'><?=$page?></div></td>
       </tr>
	 <tr>
       <td colspan="6" style="text-align:left;">操作:【<a href='' onclick="return checkForm();">添加选中内容到推荐位</a>】</td>
    </tr>
</table>
</form>
</body>
</html>
